package com.ctvit.sjk.knowledge.model.controller;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
import com.ctvit.sjk.knowledge.core.controller.KnowledgeController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * 供应商Controller
 *
 * @author heyingcheng
 * @date 2025/3/22
 */
@RestController
@RequestMapping("knowledge/provider")
public class TabProviderController extends KnowledgeController {

    /**
     * 查询供应商列表
     */
    @GetMapping
    public AjaxResult list() {
        return success(getProviderList());
    }

    /**
     * 查询供应商列表
     */
    @GetMapping("/model_type_list")
    public AjaxResult listModelType() {
        String modelTypeJsonText = "[{\"key\":\"大语言模型\",\"value\":\"LLM\"},{\"key\":\"向量模型\",\"value\":\"EMBEDDING\"},{\"key\":\"语音识别\",\"value\":\"STT\"},{\"key\":\"语音合成\",\"value\":\"TTS\"},{\"key\":\"视觉模型\",\"value\":\"IMAGE\"},{\"key\":\"图片生成\",\"value\":\"TTI\"},{\"key\":\"重排模型\",\"value\":\"RERANKER\"}]";
        return success(JSON.parseArray(modelTypeJsonText));
    }

    /**
     * 查询供应商列表
     */
    @GetMapping("/model_list")
    public AjaxResult listModel() {
        String modelTypeJsonText = "[{\"name\":\"qwen:110b\",\"desc\":\"qwen 1.5 110b 相较于以往版本，模型与人类偏好的对齐程度以及多语言处理能力上有显著增强。所有规模的模型都支持32768个tokens的上下文长度。1100亿参数。\",\"model_type\":\"LLM\"}]";
        return success(JSON.parseArray(modelTypeJsonText));
    }

    /**
     * 查询供应商列表
     */
    @GetMapping("/model_form")
    public AjaxResult getModelForm(@RequestParam String provider,
                                @RequestParam(value = "model_type", required = false) String modelType,
                                @RequestParam(value = "model_name", required = false) String modelName) {
        String formModelJsonText = "[{\"input_type\":\"TextInput\",\"label\":\"API URL\",\"required\":true,\"default_value\":null,\"relation_show_field_dict\":{},\"relation_trigger_field_dict\":{},\"trigger_type\":\"OPTION_LIST\",\"attrs\":{},\"props_info\":{},\"field\":\"api_base\"},{\"input_type\":\"PasswordInput\",\"label\":\"API Key\",\"required\":true,\"default_value\":null,\"relation_show_field_dict\":{},\"relation_trigger_field_dict\":{},\"trigger_type\":\"OPTION_LIST\",\"attrs\":{},\"props_info\":{},\"field\":\"api_key\"}]";
        return success(JSON.parseArray(formModelJsonText));
    }

    /**
     * 查询供应商列表
     */
    @GetMapping("/model_params_form")
    public AjaxResult getModelParamsForm(@RequestParam String provider,
                                      @RequestParam(value = "model_type", required = false) String modelType,
                                      @RequestParam(value = "model_name", required = false) String modelName) {
        String formParamsModelJsonText = "[{\"input_type\":\"Slider\",\"label\":{\"input_type\":\"TooltipLabel\",\"label\":\"\\u6e29\\u5ea6\",\"attrs\":{\"tooltip\":\"\\u8f83\\u9ad8\\u7684\\u6570\\u503c\\u4f1a\\u4f7f\\u8f93\\u51fa\\u66f4\\u52a0\\u968f\\u673a\\uff0c\\u800c\\u8f83\\u4f4e\\u7684\\u6570\\u503c\\u4f1a\\u4f7f\\u5176\\u66f4\\u52a0\\u96c6\\u4e2d\\u548c\\u786e\\u5b9a\"},\"props_info\":{}},\"required\":true,\"default_value\":0.3,\"relation_show_field_dict\":{},\"relation_trigger_field_dict\":{},\"trigger_type\":\"OPTION_LIST\",\"attrs\":{\"min\":0.1,\"max\":1.0,\"step\":0.01,\"precision\":2,\"show-input-controls\":false,\"show-input\":true},\"props_info\":{},\"field\":\"temperature\"},{\"input_type\":\"Slider\",\"label\":{\"input_type\":\"TooltipLabel\",\"label\":\"\\u8f93\\u51fa\\u6700\\u5927Token\\u6570\",\"attrs\":{\"tooltip\":\"\\u6307\\u5b9a\\u6a21\\u578b\\u53ef\\u4ee5\\u751f\\u6210\\u7684\\u6700\\u5927 tokens \\u6570\"},\"props_info\":{}},\"required\":true,\"default_value\":1024,\"relation_show_field_dict\":{},\"relation_trigger_field_dict\":{},\"trigger_type\":\"OPTION_LIST\",\"attrs\":{\"min\":1,\"max\":100000,\"step\":1,\"precision\":0,\"show-input-controls\":false,\"show-input\":true},\"props_info\":{},\"field\":\"max_tokens\"}]";
        return success(JSON.parseArray(formParamsModelJsonText));
    }

    private List<JSONObject> getProviderList() {
        List<JSONObject> list = new ArrayList<>();

        list.add(JSON.parseObject("{\"provider\":\"model_azure_provider\",\"name\":\"Azure OpenAI\",\"icon\":\"<svg t=\\\"1724827784525\\\" class=\\\"icon\\\" viewBox=\\\"0 0 1083 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" p-id=\\\"5331\\\" width=\\\"100%\\\" height=\\\"100%\\\"><path d=\\\"M540.115607 419.535168L460.236208 3.644671 376.260809 1.620347c-31.825387-5.244301-54.020439 8.390289-66.588115 40.908208C297.107977 75.046474 194.101272 379.938035 0.654058 957.203237-1.245965 999.731792 12.341272 1020.99311 41.418728 1020.99311h275.015029c14.599399-4.010173 25.104277-17.02178 31.514636-39.031861 6.410358-22.010081 70.46659-209.486428 192.168694-562.427561z\\\" fill=\\\"#0D559D\\\" p-id=\\\"5332\\\"></path><path d=\\\"M669.463676 658.929202l-351.23052 6.189873c-29.527306 6.969711-32.546035 22.615306-9.054705 46.941226 35.237734 36.486659 357.010497 317.661965 372.719722 311.580115 9.100578-3.52185 16.537896-4.005734 26.473064-9.14941 24.994775-12.939098 21.644578-70.568694-10.05059-172.887307l-28.855491-182.674497z\\\" fill=\\\"#0078D4\\\" p-id=\\\"5333\\\"></path><path d=\\\"M371.417526 0.331468l350.216879-0.325549a47.405873 47.405873 0 0 1 31.042589 11.556994c7.219792 6.252023 13.292763 14.842081 18.220393 25.765734 9.603699 21.293873 112.287815 325.368601 308.052347 912.225665a54.729249 54.729249 0 0 1 1.284439 30.169526c-6.225387 25.780532-19.432324 39.509827-39.623768 41.181965-24.348116 2.018405-144.088046 2.962497-359.221272 2.833758 30.551306-9.66141 44.410821-28.275422 41.578543-55.843515C720.153156 940.511445 618.336185 634.30289 417.516763 49.264462h0.00296a84.346821 84.346821 0 0 0-13.869873-25.255213C392.112092 9.559306 382.194682 2.04652 373.893179 1.47237c-10.553711-0.728046-11.379422-1.109827-2.475653-1.140902z\\\" fill=\\\"#2FA7E7\\\" p-id=\\\"5334\\\"></path></svg>\"}"));

        list.add(JSON.parseObject("{\"provider\":\"model_ollama_provider\",\"name\":\"Ollama\",\"icon\":\"<svg version=\\\"1.1\\\" id=\\\"Layer_1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" x=\\\"0px\\\" y=\\\"0px\\\" width=\\\"100%\\\" height=\\\"100%\\\" viewBox=\\\"0 0 181 256\\\" enable-background=\\\"new 0 0 181 256\\\" xml:space=\\\"preserve\\\">  <image id=\\\"image0\\\" width=\\\"181\\\" height=\\\"256\\\" x=\\\"0\\\" y=\\\"0\\\"\\n    href=\\\"\\\" ></image>\\n</svg>\\n\"}"));

        list.add(JSONObject.parseObject("{\"provider\":\"model_local_provider\",\"name\":\"\\u672c\\u5730\\u6a21\\u578b\",\"icon\":\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" t=\\\"1720668342208\\\" class=\\\"icon\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" p-id=\\\"9052\\\" width=\\\"100%\\\" height=\\\"100%\\\"><path d=\\\"M512.2 475.7c-8.2-0.3-16.1-2.4-23.4-6.1L192.6 330.2c-24.9-11.1-36.1-40.3-25-65.2 5-11.2 13.9-20.1 25-25l281.5-133.2a89.43 89.43 0 0 1 76 0L831.7 240c24.9 11.1 36.1 40.3 25 65.2-5 11.2-13.9 20.1-25 25L535.5 469.5c-7.2 3.8-15.2 5.9-23.3 6.2z m-76.5 452.5c-7.6 0-15.1-1.9-21.8-5.5L146.3 797.2c-17-8.9-27.5-26.5-27.3-45.6v-320c0.1-18 9.7-34.5 25.1-43.7 14.3-8.1 31.8-8.1 46.1 0l267.1 125.4c16.1 8.7 26.4 25.4 27.1 43.7v320.4c-0.2 17.9-9.6 34.4-24.9 43.7-7.2 4.3-15.4 6.8-23.8 7.1z m152.9 0c-8.3 0-16.5-2.2-23.8-6.3-15.3-9.3-24.7-25.8-24.9-43.7V556.9c0.4-18.2 10.4-34.8 26.2-43.7L835 387c14.2-7.5 31.4-7.1 45.2 1.1 15.5 9.1 25 25.7 25.1 43.7v319.8c0.4 18.9-9.7 36.5-26.2 45.6L610.5 922.8c-6.8 3.6-14.3 5.5-21.9 5.4z\\\" p-id=\\\"9053\\\"/></svg>\"}"));

        list.add(JSON.parseObject("{\"provider\":\"aliyun_bai_lian_model_provider\",\"name\":\"\\u963f\\u91cc\\u4e91\\u767e\\u70bc\",\"icon\":\"<svg id=\\\"\\u56fe\\u5c42_1\\\" data-name=\\\"\\u56fe\\u5c42 1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 50 50\\\"><defs><style>.cls-1{fill:#6d49f6;}.cls-2{fill:#6be8d2;}.cls-3{fill:#9b8ee8;}.cls-4{fill:#0d22d2;}.cls-5{fill:#2c53dc;}.cls-6{fill:#5eccc9;}.cls-7{fill:#fff;}</style></defs><title>\\u3010icon\\u3011\\u963f\\u91cc\\u767e\\u70bc\\u5927\\u6a21\\u578b</title><path class=\\\"cls-1\\\" d=\\\"M35.463,6.454,25,12.5,14.186,18.737,4.032,12.882a2.33,2.33,0,0,1,.851-.851L23.829,1.089a2.358,2.358,0,0,1,2.342,0Z\\\"/><polygon class=\\\"cls-2\\\" points=\\\"35.825 31.232 35.825 31.243 25 37.491 35.814 31.232 35.825 31.232\\\"/><polygon class=\\\"cls-2\\\" points=\\\"35.825 31.232 35.825 31.243 25 37.491 35.814 31.232 35.825 31.232\\\"/><polygon class=\\\"cls-2\\\" points=\\\"35.825 31.232 35.825 31.243 25 37.491 35.814 31.232 35.825 31.232\\\"/><polygon class=\\\"cls-2\\\" points=\\\"35.825 31.232 35.825 31.243 25 37.491 35.814 31.232 35.825 31.232\\\"/><polygon class=\\\"cls-2\\\" points=\\\"35.825 31.232 35.825 31.243 25 37.491 35.814 31.232 35.825 31.232\\\"/><path class=\\\"cls-3\\\" d=\\\"M45.117,12.031,35.463,6.454,25,12.5,14.186,18.737v.01L25,25h.011l10.814-6.248,10.143-5.865A2.33,2.33,0,0,0,45.117,12.031Z\\\"/><path class=\\\"cls-4\\\" d=\\\"M4.032,12.882a2.254,2.254,0,0,0-.32,1.171V35.926a2.319,2.319,0,0,0,.32,1.182l10.143-5.865v-12.5h.011v-.01Z\\\"/><polygon class=\\\"cls-5\\\" points=\\\"25 24.995 14.175 31.243 14.175 18.747 14.186 18.747 25 24.995\\\"/><path class=\\\"cls-6\\\" d=\\\"M45.968,37.1a2.278,2.278,0,0,1-.851.862L26.171,48.9a2.358,2.358,0,0,1-2.342,0l-9.3-5.375,10.462-6.035H25l10.825-6.248Z\\\"/><path class=\\\"cls-2\\\" d=\\\"M46.288,25.2V35.926a2.251,2.251,0,0,1-.32,1.171L35.825,31.243v-.011Z\\\"/><path class=\\\"cls-7\\\" d=\\\"M46.288,14.053V25.2L35.825,31.232V18.747l10.143-5.865A2.254,2.254,0,0,1,46.288,14.053Z\\\"/><polygon class=\\\"cls-7\\\" points=\\\"35.825 18.747 35.825 31.232 35.814 31.232 25.011 24.995 35.825 18.747\\\"/><path class=\\\"cls-2\\\" d=\\\"M35.814,31.232,25.011,25H25L14.175,31.243,4.032,37.108a2.33,2.33,0,0,0,.851.851l9.644,5.567,10.462-6.035H25l10.825-6.248v-.011Z\\\"/></svg>\"}"));

        list.add(JSON.parseObject("{\"provider\":\"model_siliconCloud_provider\",\"name\":\"SILICONFLOW\",\"icon\":\"<svg width=\\\"100%\\\" height=\\\"100%\\\" viewBox=\\\"0 0 24 24\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n<g clip-path=\\\"url(#clip0_10835_2)\\\">\\n<path fill-rule=\\\"evenodd\\\" clip-rule=\\\"evenodd\\\" d=\\\"M20.4785 0H18.7463C13.203 0 10.0078 3.54162 10.0078 8.96931V9.9C9.36946 9.71693 8.70867 9.62403 8.04462 9.624C4.11139 9.62377 0.92308 12.8123 0.92308 16.7453C0.92308 20.6785 4.11139 23.8668 8.04462 23.8668C11.9779 23.8668 15.1662 20.6785 15.1662 16.7453C15.1662 16.2669 15.1179 15.7899 15.0224 15.321H20.4785C21.915 15.3157 23.0769 14.1496 23.0769 12.7131C23.0769 11.2763 21.915 10.1102 20.4785 10.1049H15.0508V8.73831C15.0508 6.65954 16.5519 5.15838 18.7463 5.15838H20.4785C21.8878 5.13692 23.0192 3.98862 23.0192 2.57908C23.0192 1.16977 21.8878 0.0212308 20.4785 0ZM10.1619 16.7453C10.1619 16.1838 9.93885 15.6452 9.54178 15.2481C9.14471 14.8511 8.60616 14.628 8.04462 14.628C7.48307 14.628 6.94453 14.8511 6.54746 15.2481C6.15038 15.6452 5.92731 16.1838 5.92731 16.7453C5.92731 17.3069 6.15038 17.8454 6.54746 18.2425C6.94453 18.6395 7.48307 18.8626 8.04462 18.8626C8.60616 18.8626 9.14471 18.6395 9.54178 18.2425C9.93885 17.8454 10.1619 17.3069 10.1619 16.7453Z\\\" fill=\\\"#8358F6\\\"/>\\n</g>\\n</svg>\\n\"}"));

        list.add(JSON.parseObject("{\"provider\":\"model_zhipu_provider\",\"name\":\"\\u667a\\u8c31 AI\",\"icon\":\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"100%\\\" height=\\\"100%\\\"  fill=\\\"none\\\" viewBox=\\\"0 0 30 32\\\" id=\\\"icon-pure-logo\\\"><g clip-path=\\\"url(#icon-pure-logo_a)\\\" fill=\\\"#1665FF\\\"><path d=\\\"M15 32a.377.377 0 0 0 .377-.375.377.377 0 0 0-.378-.375.377.377 0 0 0-.378.375c0 .207.17.375.378.375Zm3.907-20.375a2.26 2.26 0 0 0 2.27-2.25 2.26 2.26 0 0 0-2.27-2.25 2.26 2.26 0 0 0-2.269 2.25 2.26 2.26 0 0 0 2.27 2.25Zm3.908 6.625a2.26 2.26 0 0 0 2.27-2.25 2.26 2.26 0 0 0-2.27-2.25A2.26 2.26 0 0 0 20.546 16a2.26 2.26 0 0 0 2.27 2.25Zm-15.63 0A2.26 2.26 0 0 0 9.454 16a2.26 2.26 0 0 0-2.27-2.25A2.26 2.26 0 0 0 4.917 16a2.26 2.26 0 0 0 2.269 2.25Zm17.647-6.501a1.38 1.38 0 0 0 1.386-1.375A1.38 1.38 0 0 0 24.832 9a1.38 1.38 0 0 0-1.386 1.374c0 .76.621 1.375 1.386 1.375ZM15 6.25a1.38 1.38 0 0 0 1.385-1.375c0-.76-.62-1.375-1.386-1.375a1.38 1.38 0 0 0-1.386 1.375c0 .759.62 1.374 1.386 1.374Zm-9.833 5.499a1.38 1.38 0 0 0 1.386-1.375A1.38 1.38 0 0 0 5.167 9a1.38 1.38 0 0 0-1.386 1.374c0 .76.621 1.375 1.386 1.375Zm0 11.251a1.38 1.38 0 0 0 1.386-1.374c0-.76-.62-1.375-1.386-1.375a1.38 1.38 0 0 0-1.386 1.375A1.38 1.38 0 0 0 5.167 23ZM15 28.625a1.38 1.38 0 0 0 1.385-1.374c0-.76-.62-1.375-1.386-1.375a1.38 1.38 0 0 0-1.386 1.375c0 .759.62 1.374 1.386 1.374ZM24.832 23a1.38 1.38 0 0 0 1.386-1.374c0-.76-.62-1.375-1.386-1.375a1.38 1.38 0 0 0-1.386 1.375A1.38 1.38 0 0 0 24.832 23ZM22.059 4.751a.88.88 0 0 0 .883-.875.88.88 0 0 0-.883-.876.88.88 0 0 0-.883.876.88.88 0 0 0 .883.875Zm-14.118 0a.88.88 0 0 0 .883-.875A.88.88 0 0 0 7.94 3a.88.88 0 0 0-.883.876.88.88 0 0 0 .883.875ZM.883 16.876a.88.88 0 0 0 .883-.875.88.88 0 0 0-.883-.876.88.88 0 0 0-.883.876.88.88 0 0 0 .883.875ZM7.941 29a.88.88 0 0 0 .883-.875.88.88 0 0 0-.883-.876.88.88 0 0 0-.883.876.88.88 0 0 0 .883.875Zm14.118 0a.88.88 0 0 0 .883-.875.88.88 0 0 0-.883-.876.88.88 0 0 0-.883.876.88.88 0 0 0 .883.875Zm7.058-12.124a.88.88 0 0 0 .883-.875.88.88 0 0 0-.883-.876.88.88 0 0 0-.883.876.88.88 0 0 0 .883.875Zm-.503-8.251a.377.377 0 0 0 .378-.375.377.377 0 0 0-.378-.375.377.377 0 0 0-.378.375c0 .207.17.375.378.375ZM15 .75a.377.377 0 0 0 .377-.375A.377.377 0 0 0 15 0a.377.377 0 0 0-.378.375c0 .207.17.375.378.375ZM1.386 8.625a.377.377 0 0 0 .378-.375.377.377 0 0 0-.378-.375.377.377 0 0 0-.378.375c0 .207.17.375.378.375Zm0 15.625a.377.377 0 0 0 .378-.374.377.377 0 0 0-.378-.375.377.377 0 0 0-.378.375c0 .207.17.375.378.375Zm27.228-.125a.377.377 0 0 0 .378-.375.377.377 0 0 0-.378-.375.377.377 0 0 0-.378.375c0 .207.17.375.378.375Z\\\"></path><path d=\\\"M19.538 20.5c-1.007-.374-2.142.126-2.646 1-.505.876-1.513 1.375-2.647 1-.63-.126-1.008-.625-1.261-1 0-.125-.127-.25-.127-.5 0-1 .756-1.75 1.64-1.875h.25c1.765.125 3.277-1.375 3.404-3.126.127-1.75-1.386-3.25-3.152-3.375h-.378c-1.008 0-1.64-.75-1.64-1.75 0-.249 0-.5.127-.624v-.125c0-.126.127-.126.127-.25.378-1.25-.252-2.5-1.512-2.874-1.135-.375-2.52.25-2.9 1.5-.377 1.125.252 2.375 1.387 2.874.168.084.336.126.505.126h.126c.883.125 1.64.875 1.64 1.75 0 .374-.127.624-.252.875-.252.5-.505 1-.505 1.625 0 .626.127 1.375.505 1.875.126.25.251.625.251.876 0 .875-.63 1.625-1.512 1.75h-.378c-1.261.249-2.018 1.5-1.764 2.75.253 1.25 1.512 2 2.646 1.75.63-.126 1.135-.501 1.386-1 .505-.876 1.64-1.375 2.647-1 .505.126 1.008.5 1.262 1 .251.375.756.75 1.26 1 1.262.374 2.396-.25 2.9-1.5.504-1.126-.127-2.376-1.387-2.751h-.002Z\\\"></path></g><defs><clipPath id=\\\"icon-pure-logo_a\\\"><path fill=\\\"#fff\\\" d=\\\"M0 0h30v32H0z\\\"></path></clipPath></defs></svg>\"}"));

        list.add(JSON.parseObject("{\"provider\":\"model_deepseek_provider\",\"name\":\"DeepSeek\",\"icon\":\"<svg width=\\\"100%\\\" height=\\\"100%\\\" viewBox=\\\"0 0 50 50\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n\\txmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\">\\n\\t<path id=\\\"path\\\"\\n\\t\\td=\\\"M48.8354 10.0479C48.3232 9.79199 48.1025 10.2798 47.8032 10.5278C47.7007 10.6079 47.6143 10.7119 47.5273 10.8076C46.7793 11.624 45.9048 12.1597 44.7622 12.0957C43.0923 12 41.666 12.5356 40.4058 13.8398C40.1377 12.2319 39.2476 11.272 37.8926 10.6558C37.1836 10.3359 36.4668 10.0156 35.9702 9.31982C35.6235 8.82373 35.5293 8.27197 35.356 7.72754C35.2456 7.3999 35.1353 7.06396 34.7651 7.00781C34.3633 6.94385 34.2056 7.2876 34.0479 7.57568C33.418 8.75195 33.1733 10.0479 33.1973 11.3599C33.2524 14.312 34.4736 16.6641 36.8999 18.3359C37.1758 18.5278 37.2466 18.7197 37.1597 19C36.9946 19.5757 36.7974 20.1357 36.624 20.7119C36.5137 21.0801 36.3486 21.1597 35.9624 21C34.6309 20.4321 33.481 19.5918 32.4644 18.5757C30.7393 16.8721 29.1792 14.9917 27.2334 13.52C26.7764 13.1758 26.3193 12.856 25.8467 12.5518C23.8618 10.584 26.1069 8.96777 26.627 8.77588C27.1704 8.57568 26.8159 7.8877 25.0591 7.896C23.3022 7.90381 21.6953 8.50391 19.647 9.30371C19.3477 9.42383 19.0322 9.51172 18.7095 9.58398C16.8501 9.22363 14.9199 9.14355 12.9033 9.37598C9.10596 9.80762 6.07275 11.6396 3.84326 14.7681C1.16455 18.5278 0.53418 22.7998 1.30664 27.2559C2.11768 31.9521 4.46582 35.8398 8.07373 38.8799C11.8159 42.0322 16.1255 43.5762 21.041 43.2803C24.0269 43.104 27.3516 42.6963 31.1016 39.4561C32.0469 39.936 33.0396 40.1279 34.686 40.272C35.9546 40.3921 37.1758 40.208 38.1211 40.0078C39.6021 39.688 39.4995 38.2881 38.9639 38.0322C34.623 35.9678 35.5762 36.8081 34.71 36.1279C36.9155 33.4639 40.2402 30.6958 41.54 21.728C41.6426 21.0161 41.5557 20.5679 41.54 19.9917C41.5322 19.6396 41.6108 19.5039 42.0049 19.4639C43.0923 19.3359 44.1479 19.0317 45.1167 18.4878C47.9292 16.9199 49.064 14.3438 49.3315 11.2559C49.3711 10.7837 49.3237 10.2959 48.8354 10.0479ZM24.3262 37.8398C20.1196 34.4639 18.0791 33.3521 17.2358 33.3999C16.4482 33.4482 16.5898 34.3682 16.7632 34.9678C16.9443 35.5601 17.1812 35.9683 17.5117 36.4878C17.7402 36.832 17.8979 37.3442 17.2832 37.728C15.9282 38.584 13.5728 37.4399 13.4624 37.3838C10.7207 35.7358 8.42822 33.5601 6.81348 30.584C5.25342 27.7197 4.34766 24.6479 4.19775 21.3677C4.1582 20.5757 4.38672 20.2959 5.15869 20.1519C6.17529 19.96 7.22314 19.9199 8.23926 20.0718C12.5327 20.7119 16.1885 22.6719 19.2529 25.7759C21.002 27.5439 22.3252 29.6558 23.6885 31.7202C25.1377 33.9121 26.6978 36 28.6831 37.7119C29.3843 38.312 29.9434 38.7681 30.479 39.104C28.8643 39.2881 26.1699 39.3281 24.3262 37.8398ZM26.3433 24.6001C26.3433 24.248 26.6191 23.9678 26.9658 23.9678C27.0444 23.9678 27.1152 23.9839 27.1782 24.0078C27.2651 24.04 27.3438 24.0879 27.4067 24.1602C27.5171 24.272 27.5801 24.4321 27.5801 24.6001C27.5801 24.9521 27.3042 25.2319 26.9575 25.2319C26.6108 25.2319 26.3433 24.9521 26.3433 24.6001ZM32.6064 27.8799C32.2046 28.0479 31.8027 28.1919 31.4165 28.208C30.8179 28.2397 30.1641 27.9922 29.8096 27.688C29.2583 27.2158 28.8643 26.9521 28.6987 26.1279C28.6279 25.7759 28.6675 25.2319 28.7305 24.9199C28.8721 24.248 28.7144 23.8159 28.2495 23.4238C27.8716 23.104 27.3911 23.0161 26.8633 23.0161C26.666 23.0161 26.4849 22.9277 26.3511 22.856C26.1304 22.7441 25.9492 22.4639 26.1226 22.1201C26.1777 22.0078 26.4458 21.7358 26.5088 21.688C27.2256 21.272 28.0527 21.4077 28.8169 21.7197C29.5259 22.0161 30.0615 22.5601 30.834 23.3281C31.6216 24.2559 31.7632 24.5117 32.2124 25.208C32.5669 25.752 32.8901 26.312 33.1104 26.9521C33.2446 27.3521 33.0713 27.6802 32.6064 27.8799Z\\\"\\n\\t\\tfill=\\\"#4D6BFE\\\" fill-opacity=\\\"1.000000\\\" fill-rule=\\\"nonzero\\\" />\\n</svg>\"}"));

        return list;
    }

}
